/**
 * @param {string} s
 * @return {character}
 */
var firstUniqChar = function (s) {
  if (s.length === 0) return ' '
  if (s.length === 1) return s
  let queue = []
  for (let i = 0; i < s.length; i++) {
    queue.push(s[i])
  }
  let temp = []
  for (let i = 0; i < queue.length; i++) {
    if (!temp.includes(queue[i])) {
      temp.push(queue[i])
    }
  }
  console.log(queue);
  console.log(temp);
};
firstUniqChar('abaccdeff')